<?php

 include_once($_SERVER['DOCUMENT_ROOT'] . '/smartrfid/model/ticket.php');
 include_once($_SERVER['DOCUMENT_ROOT'] . '/smartrfid/dto/ticketdto.php');
 error_reporting(0);
 
 $id=$_GET['id'];
 $i=new Ticket();
 $i->load($id);
  
 $idto=new Ticketdto($i);
 echo json_encode($idto);

?>